<template>
	<view>
		<view class="menu">
			<u-tabs :list="tabList" :is-scroll="false" :current="currentSort" @change="changeSort"></u-tabs>
		</view>
		<view v-if="currentSort==0">

		</view>
		<view v-if="currentSort==1">

		</view>

		<view class="toOrder">
			<u-button type="primary" @click="toSongSubmit()">下单</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				currentSort: 0,
				tabList: [{
					name: '帮我送'
				}, {
					name: '帮我取'
				}, ],


			}
		},
		onLoad() {

		},
		methods: {
			changeSort(index) {
				console.log(index)
				this.currentSort = index;
				// this.getData()
			},

			toSongSubmit() {
				uni.navigateTo({
					url: '/pages/index/jisong/songSubmit'
				});
			}
		},

	}
</script>

<style lang="scss" scoped>
	.map {
		height: 500rpx;
	}

	.quAdress {
		margin: 20px 50rpx 10rpx 50rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;

		.quInformation {
			display: flex;
			flex-direction: column;
		}
	}

	.songAdress {
		margin: 20px 50rpx 10rpx 50rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;

		.songInformation {
			display: flex;
			flex-direction: column;
		}
	}

	.toOrder {
		margin: 20px 50rpx 10rpx 50rpx;
		margin-top: 900rpx;
	}
</style>
